:root {
  --primary-color: #3498db;
  --primary-light: #e6f7ff;
  --success-color: #52c41a;
  --text-color: #2c3e50;
  --light-gray: #f5f5f5;
  --border-radius: 16px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.word-header {
  padding: 5px 20px;
  background: #f8f9ff;
  display: flex;
  justify-content: space-between;

}

.word-section {
  padding: 5px 20px;
  background: #f8f9ff;
  text-align: center;
}

.word {
  font-size: 1rem;
  font-weight: bold;
  display: inline-flex;
  color: #5b9f60;
  background-color: #dbeadf;
  padding: 10px;
  border-radius: 20px;
}

.word-display {
  display: inline-flex;
  align-items: center;
  padding: 15px 20px;
  border-radius: 50px;
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-color);
  margin: 0 20px;
}

.word-display:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: #e6f7ff;
}

.icon-div {
  border-radius: 50%;
  background-color: #dbeadf;
  display: inline-block;
  padding: 10px;
}

.sound-icon {
  font-size: 1.7rem;
  color: #5b9f60;
  transition: all 0.3s ease;
}

.word-display:hover .sound-icon {
  transform: scale(1.2);
}

.question-index {
  margin-left: 10px;
  font-size: 1.5rem;
  color: #7f8c8d;
}

.images-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 25px;
  background: #f8f9ff;
}

.image-option {
  cursor: pointer;
  transition: all 0.3s ease;
}

.image-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 3px solid #e8e8e8;
  transition: all 0.3s ease;
  text-align: center;
  height: 100%;
}

// .image-option:hover .image-container {
//   transform: translateY(-5px);
//   box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
//   //border-color: var(--primary-color, #008EE0);
// }
.image-option-selected {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.image-option-selected .image-container {
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}

.image-option-Error {
  border-color: red;
}

.option-image {
  //width: 180px;
  //height: 180px;
  //object-fit: cover;
  display: contents;
}

.image-label {
  text-align: center;
  margin-top: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
}

.selection-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: var(--success-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.actions {
  padding: 0 20px 20px;
}

.continue-button {
  height: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 20px;
  background: #8cbb90;
  //background: linear-gradient(to right, rgb(41 155 89), rgb(69 123 92));
  //background: linear-gradient(to bottom, rgb(207 255 234), rgb(241 255 248));
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(255, 126, 95, 0.3);
  transition: all 0.3s ease;
}

.continue-button:disabled {
  background: #f0f0f0;
  color: #bfbfbf;
  box-shadow: none;
  cursor: not-allowed;
}

.continue-button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 126, 95, 0.4);
}

/* 动画效果 */
@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.image-option.selected .image-container {
  animation: pulse 0.5s ease-in-out;
}

/* 响应式调整 */
@media (max-width: 480px) {
  .header span {
    font-size: 1.2rem;
  }

  .word-display {
    font-size: 1.7rem;
    padding: 12px 15px;
  }

  .images-grid {
    gap: 15px;
    padding: 5px 20px 20px 20px;
  }

  .option-image {
    //height: 140px;
  }

  .image-label {
    font-size: 1rem;
  }

  .continue-button {
    height: 46px;
    font-size: 1rem;
  }
}

/* 水波纹效果 */
.image-option {
  position: relative;
  overflow: hidden;
}

.image-option:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.image-option:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

.list-modal {
  max-width: 400px;
  max-height: 80vh;
  padding: 25px 20px 8px;
  --border-radius: 24px;
}

.list-content {
  .list-title {
    text-align: center;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .header-title {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .word-list {
    margin-top: 15px;

    .word-item {
      padding: 12px 15px;
      border-radius: 12px;
      margin-bottom: 8px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      border: 1px solid #f0f0f0;
    }

    .word-item-current {
      padding: 12px 15px;
      border-radius: 12px;
      margin-bottom: 8px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      border: 1px solid #f0f0f0;
      background-color: #5a9e6033;
      border-color: #5a9e604d;
    }

    .word-inco {
      color: #ddd;
    }

    .word-inco-current {
      color: #1EB7D8;
    }


  }

  .close-button {
    display: block;
    margin: 1.5rem auto 0;
    border-radius: 9999px;
    background-color: #f3f4f6;
    font-weight: 700;

  }
}


@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 1;
  }

  20% {
    transform: scale(25, 25);
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}